Optimal. Leaf size=32 \[ -\frac {A b-a B}{b^2 (a+b x)}+\frac {B \log (a+b x)}{b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {27, 45}
\begin {gather*} \frac {B \log (a+b x)}{b^2}-\frac {A b-a B}{b^2 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 45
Rubi steps
\begin {align*} \int \frac {A+B x}{a^2+2 a b x+b^2 x^2} \, dx &=\int \frac {A+B x}{(a+b x)^2} \, dx\\ &=\int \left (\frac {A b-a B}{b (a+b x)^2}+\frac {B}{b (a+b x)}\right ) \, dx\\ &=-\frac {A b-a B}{b^2 (a+b x)}+\frac {B \log (a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 31, normalized size = 0.97 \begin {gather*} \frac {-A b+a B}{b^2 (a+b x)}+\frac {B \log (a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 33, normalized size = 1.03
method | result | size |
default | \(-\frac {A b -B a}{b^{2} \left (b x +a \right )}+\frac {B \ln \left (b x +a \right )}{b^{2}}\) | \(33\) |
norman | \(-\frac {A b -B a}{b^{2} \left (b x +a \right )}+\frac {B \ln \left (b x +a \right )}{b^{2}}\) | \(33\) |
risch | \(-\frac {A}{b \left (b x +a \right )}+\frac {B a}{b^{2} \left (b x +a \right )}+\frac {B \ln \left (b x +a \right )}{b^{2}}\) | \(39\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 34, normalized size = 1.06 \begin {gather*} \frac {B a - A b}{b^{3} x + a b^{2}} + \frac {B \log \left (b x + a\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.68, size = 37, normalized size = 1.16 \begin {gather*} \frac {B a - A b + {\left (B b x + B a\right )} \log \left (b x + a\right )}{b^{3} x + a b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 27, normalized size = 0.84 \begin {gather*} \frac {B \log {\left (a + b x \right )}}{b^{2}} + \frac {- A b + B a}{a b^{2} + b^{3} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.87, size = 32, normalized size = 1.00 \begin {gather*} \frac {B \log \left ({\left | b x + a \right |}\right )}{b^{2}} + \frac {B a - A b}{{\left (b x + a\right )} b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.08, size = 32, normalized size = 1.00 \begin {gather*} \frac {B\,\ln \left (a+b\,x\right )}{b^2}-\frac {A\,b-B\,a}{b^2\,\left (a+b\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________